﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVoteMVC.Data;
using MyVoteMVC.Domain;
using MyVoteMVC.Common;
using MyVoteMVC.Common.Objects;
using MyVoteMVC.Data.Repositories;


namespace MyVoteMVC.Service
{
    public interface ITickService : IDisposable
    {
        //增加
        bool CreateTickets(string activityID, string userID, string ticketContent, int ticketStatus, string userEmailName);

        //编辑 保存
        bool EditTicket(string activityID,string ticketID, string ticketContent,string userEmailName);

        //删除
        bool DeleteTicket(string activityID, string ticketID);

        //提交
        bool Submit(string activityID, string userID, string ticketContent, string userEmailName);

        //是否已经提交投票
        bool IsCanModify(string activityID, string userID);

        //保存
        bool Save(string activityID, string userID, string ticketContent, string userEmailName);

        string GetContent(string activityID, string userID);
 
        //获取ticeket集合
        IList<VT_Tickets> GetTickets(string activityID, int state);

        IList<VT_Tickets> GetTicketsNoLottery(string activityID, int state);

        void ReComputeTicket();
 
    }
}
